checkLogin();
var work_info = getCache(login_key);
var openid = GetQueryString('openid');

var success = function (res) {
    work_info.openid = openid;
    setCache(login_key, work_info);
    setTimeout(function () {
        redirect('center.html');
    }, 2000)
};
var error = function (res) {
    setTimeout(function () {
        redirect('center.html');
    }, 2000)
};
postData(worker_bindwx, {aid: work_info.aid, sid: work_info.sid, wid: work_info.wid, openid: openid}, success, error);


